package edu.scnu.fans.fingertip.item.output;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品")
public class ItemOutput {

    private Long id;

    @ApiModelProperty("状态 0:下架; 1上架")
    private String status;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品介绍")
    private String content;

    @ApiModelProperty("商品图片列表")
    private List<ItemImgOutput> imgList;

    @ApiModelProperty("商品规格列表")
    private List<ItemSpecOutput> specList;

    public ItemOutput(Long id, String status, String title, String content) {
        this.id = id;
        this.status = status;
        this.title = title;
        this.content = content;
    }
}
